package allocator

import java.sql.Time

class HoraAula {

	String dia
	String inicio
	String termino
	String turno
	int credito
	
    static constraints = {
    	dia blank: false, InList : ["Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sabado"]
        turno blank: false, InList : ["Manhã", "Tarde", "Noite"]
    	inicio blank: false, matches: /\d{2}:\d{2}/
    	termino blank: false, matches: /\d{2}:\d{2}/
    	credito blank: false, min: 1
    }

    String toString() {
        "${dia} (${turno}), das ${inicio} às ${termino}" 
    }
}
